import { ILoginState } from './login/type'
import { IStatistics } from './main/general/type'

//根state，放的是基本信息
export interface IRootState {
  name: string
  email: string
  roleId: number
  url: string | null
}
//state模块导出对应type
export interface IRootWithModule {
  login: ILoginState
  general: IStatistics
}
//组合返回成为store的泛型，为封装泛型需要定义useStore函数
export type IStoreType = IRootState & IRootWithModule
